package cn.jiyun.ware.service.impl;

import cn.jiyun.ware.dao.WareDao;
import cn.jiyun.ware.pojo.Ware;
import cn.jiyun.ware.service.WareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareServiceImpl implements WareService {
    @Autowired
    private WareDao wareDao;
    @Override
    public void add(Integer sid, Integer num) {
        Ware ware = new Ware();
        ware.setSid(sid);
        ware.setNum(num);
        wareDao.insert(ware);
    }
}
